import type { Router } from 'vue-router'
import { changeTitle } from './changeTitle'
import { setupNprogress } from './nprogress'

// 注册路由守卫
export function setupRouterGuard(router: Router) {
  // 改变标题
  changeTitle(router)
  // 进度条
  setupNprogress(router)
}
